import os

# Define the path to list files
path = r"D:\javaworkspace\alibaba-openmanus\extensions"

# List all files in the directory
files_in_directory = os.listdir(path)

# Filter only files (excluding directories)
only_files = [f for f in files_in_directory if os.path.isfile(os.path.join(path, f))]

only_files